package com.tianma315.core.merchant.service;

import com.baomidou.mybatisplus.plugins.Page;

import com.tianma315.core.common.base.CoreService;
import com.tianma315.core.merchant.domain.MerchantDO;
import com.tianma315.core.merchant.vo.MerchantVO;
;


import java.io.IOException;

/**
 * 
 * <pre>
 * 商户表
 * </pre>
 * <small> 2019-08-01 09:20:13 | gwl</small>
 */
public interface MerchantService extends CoreService<MerchantDO> {

    Boolean insertMerchant(MerchantVO merchantDO) throws IOException;

    Page<MerchantDO> getMerchantDOPage(Integer pageNumber, Integer pageSize, MerchantDO merchantDTO);

    Boolean deleteMerchantService(Long id);


    /**
     * 清楚数据
     * @param merchantId
     * @return
     */
    boolean removeInfo(Long merchantId);

    /**
     * 获取当前登录用户的商户信息
     *
     * @param user_id
     * @return
     */
    MerchantDO getByUserId(long user_id);

    /**
     *
     * @param merchant_id
     * @return
     */
    MerchantDO getById(long merchant_id);
}
